/**
 *	all functions related to the 'MatchPage' view
**/

if (typeof Controllers === "undefined") {
	var Controllers = { }
}

Controllers.MatchPage = {
	
	//exit back to the login page
	exitButton: function() {
		//clear some stored data here?
		Main.goTo('LoginPage')
	},
	
	//clear the find page and go to it. start the game search
	findButton: function() {
		Controllers.FindMatchPage.begin()
		Main.goTo('FindMatchPage')
	},
	
	hostButton: function() {
		Controllers.HostMatchPage.begin()
		Main.goTo('HostMatchPage')
	}
	
}